//
//  NSString+Tool.h
//  GLGW_Shoping
//
//  Created by whx on 2018/12/6.
//  Copyright © 2018年 yang. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (Tool)

/**
 剪切textfile实时输入的字符

 @param textFlidStr textfile.text
 @param string replacementString
 @return 剪切好的字符
 */
+ (NSString *)stringWithTextFiledStr:(NSString *)textFlidStr replacementString:(NSString *)string;


/**
 随机长度字符串

 @param len 几个
 @return 字符串
 */
+ (NSString *)randomStringWithLength:(NSInteger)len;

/**
 给银行卡号4位一个kongge
 
 @param bankNum 银行卡号
 @return 添加好的银行卡号
 */
+(NSString *)getNewBankNumWitOldBankNum:(NSString *)bankNum;

/**
 判断邮箱格式
 
 @param email 邮箱字符串
 @return 是否正确
 */
+ (BOOL)isValidateEmail:(NSString *)email;

@end
